.cleafloat {
    &::after {
        display: block;
        clear: both;
        content: "";
    }
}

.carbtn {
    float: left;
    background: #e1251b;
    height: 36px;
    padding: 0 25px;
    font-size: 16px;
    border: none;
    color: #FFF;
}

// 头部导航栏
.header_top {
    height: 30px;
    background: #eaeaea;

    .header_top_con {
        width: 1200px;
        // width: 30px;
        margin: auto;
        // border: 1px solid red;
        .cleafloat;

        .header_top_con_left {
            line-height: 30px;
            font-weight: 700;
            float: left;

            a {
                font-weight: 300;
            }

            b {
                font-size: 14px;
                color: #b3aeae;
            }
        }

        .header_top_con_right {
            float: right;
            line-height: 30px;

            a {
                border-right: 1px solid #b3aeae;
                padding: 0 10px;

                &:last-child {
                    border-right: none;
                }
            }
        }
    }
}

//搜索框
.header_mid {
    width: 1200px;
    margin: 0 auto;
    // border:1px solid red;
    .cleafloat;

    .logo {
        width: 175px;
        height: 56px;
        margin: 25px 45px;
        float: left;

        img {
            width: 100%;
            height: 100%;
        }
    }

    .searchbox {
        float: right;
        margin: 35px 0;

        input {
            box-sizing: border-box;
            width: 490px;
            height: 32px;
            padding: 0 4px;
            border: 3px solid #ea4a36;
            float: left;
        }

        button {
            width: 68px;
            height: 32px;
            border: none;
            background-color: #ea4a36;
            color: #fff;
            float: left;

            &:active {
                background: yellow;
                color: #000;
            }
        }

    }
}

//导航栏
.header_nav {
    border-bottom: 2px solid red;

    .header_con {
        width: 1200px;
        margin: auto;

        .header_nav_con {
            width: 1200px;
            .cleafloat;

            li {
                float: left;
                margin: 0 22px;
                font-size: 16px;
                color: #333;
                text-align: center;
                line-height: 50px;
            }

            .li_frist {
                width: 210px;
                height: 50px;
                background-color: #e1251b;
                line-height: 50px;

                a {
                    font-size: 14px;
                    color: #fff;
                    font-weight: 700;
                }

            }
        }
    }

}


//主要内容区
.detail {
    width: 1200px;
    margin: 15px auto;
    // border: 1px solid red;
    .cleafloat;

    .detail_top {
        // float: left;
        padding: 9px 15px 9px 0;

        span {
            padding: 0 5px;
        }
    }

    .detail_left {
        margin: 5px 0 15px;
        width: 400px;
        float: left;

    }

    .detail_left_top {
        width: 400px;
        height: 400px;
        border: 1px solid #DFDFDF;
        position: relative;

        .mark {
            width: 200px;
            height: 200px;
            background-color: rgba(255, 255, 255, .5);
            position: absolute;
            border: 1px solid #ddd;
            top: 0;
            left: 0;
            // opacity: 0.5;
            display: none;
        }

        .bigimg {
            width: 400px;
            height: 400px;
            border: 1px solid #DDD;
            position: absolute;
            top: 0;
            left: 420px;
            overflow: hidden;
            display: none;
        }
    }

    .detail_left_bottom {
        width: 400px;
        padding-top: 5px;
        .cleafloat;

        button {
            width: 10px;
            height: 54px;
            border: 1px solid #ccc;
            background-color: #EBEBEB;
            float: left;
        }

        .detail_left_bottom_lis {
            width: 372px;
            height: 56px;
            float: left;
            overflow: hidden;
            margin-left: 4px;

            ul {
                // width: 372px;
                // height: 56px;
                width: 2000px;
                transition: .5s all ease;
                // left: 0;
                // top: 0;

                li {
                    width: 50px;
                    height: 50px;
                    float: left;
                    border: 1px solid #CCC;
                    padding: 2px;
                    margin-right: 20px;

                    // float: left;
                    // position: relative;
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }

    }

    .detail_right {
        width: 700px;
        float: right;

        .right_top {
            h3 {
                font-size: 14px;
                line-height: 21px;
                margin-top: 15px
            }

            p {
                color: #e12228;
                // padding-top: 15px;
                margin-top: 15px;
            }

            .boder {
                margin-top: 10px;
                line-height: 28px;
                background-color: #fee9ec;
                padding: 7px 7px;

                p {
                    color: #000;
                }

                b {
                    font-size: 16px;
                    color: #cc1122;
                }

                span {
                    font-size: 24px;
                    color: #cc1122;
                    font-weight: 700;
                }

                i {
                    color: #cc1122;
                }

                em {
                    float: right;
                    // color: #000;
                }
            }

            .purchase {
                width: 520px;
                line-height: 28px;

                span {
                    font-size: 12px;
                    color: #000;
                    font-weight: 200;
                }

                em {
                    background-color: #c81623;
                    padding: 3px;
                    color: #fff;
                }

                p {
                    color: #999;
                }
            }

            .thank {
                span {
                    font-size: 12px;
                    color: #000;
                    font-weight: 200;
                    float: left;
                }

                p {
                    color: #999;
                }
            }

            .bcak {
                border-bottom: 1px solid #ededed;
                padding-bottom: 5px;

                span {
                    font-size: 12px;
                    color: #000;
                    font-weight: 200;
                    float: left;
                }

                p {
                    color: #999;
                }
            }
        }

        .chose_box {
            margin-top: 5px;
            .cleafloat;

            span {
                height: 30px;
                line-height: 30px;
                float: left;
                padding: 0 20px;
                margin-right: 20px;
                background: white;
                border: 1px solid #ddd;

                i {
                    margin-left: 20px;
                    color: red;
                }
            }
        }

        .right_bottom {
            margin-top: 10px;
            line-height: 28px;

            dl {
                margin: 10px 0;
                .cleafloat;

                dt {
                    float: left;
                    margin-right: 15px;
                }

                dd {
                    &:first-of-type {
                        color: red;
                    }

                    float: left;
                    margin-right: 5px;
                    color: #666;
                    line-height: 24px;
                    padding: 2px 14px;
                    border-top: 1px solid #eee;
                    border-left: 1px solid #eee;
                    border-right: 1px solid #bbb;
                    border-bottom: 1px solid #bbb;
                }
            }

            .add_left {
                width: 55px;
                margin-right: 15px;
                position: relative;
                float: left;

                input {
                    width: 38px;
                    height: 37px;
                    border: 1px solid #ddd;
                    color: #555;
                }

                .add_top {
                    width: 15px;
                    height: 18px;
                    line-height: 18px;
                    text-align: center;
                    border: 1px solid #ddd;
                    background: #f1f1f1;
                    color: #666;
                    position: absolute;
                    right: 1px;

                }

                .add_bottom {
                    width: 15px;
                    height: 18px;
                    line-height: 18px;
                    text-align: center;
                    border: 1px solid #ddd;
                    background: #f1f1f1;
                    color: #666;
                    position: absolute;
                    right: 1px;
                    top: 20px
                }


            }

            .shopping {
                padding: 0 25px;
                height: 36px;
                font-size: 16px;
                background-color: #e1251b;
                color: #fff;
                border: none;
            }
        }
    }

    //下方内容区
    .main_content {

        .cleafloat;
        margin-top: 535px;

        .main_content_l {
            width: 210px;
            border: 1px solid #CCC;
            float: left;

            .btn_list {
                .cleafloat;

                li {
                    float: left;
                    height: 40px;
                    border-top: 3px solid #FFF;
                    width: 105px;
                    line-height: 37px;
                    border-bottom: 1px solid #CCC;
                    text-align: center;
                    font-weight: bold;
                }

                .active {
                    border-top: 3px solid #e1251b;
                    border-bottom: none;
                }
            }

            .box_list {
                padding: 10px;

                .box {
                    display: none;

                    .goods_menu {
                        li {
                            width: 50%;
                            float: left;
                            border-bottom: 1px dashed #ededed;
                            line-height: 28px;
                        }
                    }

                    .goods_menu2 {
                        li {
                            margin: 5px 0 15px;
                            padding-bottom: 10px;
                            border-bottom: 1px solid #ededed;

                            img {
                                width: 152px;

                            }

                            .price {
                                color: #c81623;
                                font-size: 16px;
                            }

                            .btnbox {
                                margin-top: 5px;
                                text-align: center;

                                a {
                                    color: #8c8c8c;
                                    border: 1px solid #8c8c8c;
                                    padding: 2px 14px;
                                    line-height: 18px;
                                }
                            }
                        }
                    }
                }

                .show {
                    display: block;
                }
            }
        }

        .main_content_r {
            // border: 1px solid red;
            width: 980px;
            float: right;

            .main_content_r_t {
                border: 1px solid #DDD;
                margin-bottom: 15px;

                h4 {
                    background: #f1f1f1;
                    border-bottom: 1px solid #DDD;
                    padding: 5px 0 5px 15px;
                    color: #333;
                }

                .choosebox {
                    padding-top: 10px;
                    height: 170px;
                    .cleafloat;

                    .goodsbox {
                        float: left;
                        width: 127px;
                        height: 165px;
                        color: #c81623;
                        font-size: 16px;
                        position: relative;
                        text-align: center;

                        img {
                            width: 87px;
                            margin: 0 auto;
                        }

                        i {
                            position: absolute;
                            top: 48px;
                            right: -25px;
                            color: #333;
                        }
                    }

                    .choosebox_list {
                        float: left;
                        width: 668px;
                        height: 165px;

                        li {
                            float: left;
                            width: 127px;
                            margin: 0 20px;
                            text-align: center;

                            img {
                                width: 120px;
                                height: 130px;
                            }
                        }
                    }

                    .choosebox_r {
                        border-left: 1px solid #ddd;
                        width: 153px;
                        height: 165px;
                        float: left;
                        padding-left: 20px;

                        p {
                            &:nth-child(1) {
                                margin: 10px 0;
                            }

                            &:nth-child(2) {
                                margin-bottom: 10px;
                                font-weight: bold;
                            }

                            &:nth-child(3) {
                                margin-bottom: 10px;
                                color: #B1191A;
                                font-size: 16px;
                            }
                        }

                        button {
                            .carbtn;
                        }
                    }
                }
            }

            .main_content_r_b {
                .btn_list {
                    background: #ededed;
                    .cleafloat;

                    li {
                        background: #FFF;
                        border: 1px solid #ddd;
                        float: left;
                        height: 40px;
                        padding: 0 11px;
                        text-align: center;
                        line-height: 40px;
                        margin-left: -1px;
                    }

                    .active {
                        background: red;

                        a {
                            color: #FFF;
                        }
                    }
                }

                .box_list {
                    .show {
                        display: block;
                    }

                    li {
                        display: none;
                    }
                }
            }
        }
    }
}


//右侧详情盒子
.right_open_box{
    height: 100%;
    width: 300px;
    background-color: #7a6e6e;
    transition: right .3s ease-in-out 0s;
    top: 0px;
    right: 0px;
    position: fixed;
    z-index: 1;
    // right: -294px;
    .count_box{
       width: 294px;
       background: bisque;
       position: absolute;
       left: 6px;
       z-index: 999;
       height: 100%;
    }
    
    .count_button {
        width: 35px;
        height: 35px;
        background-color: #7a6e6e;
        position: absolute;
        top: 0;
        left: -29px;
        border-radius: 3px 0 0 3px;
        background-size: 35px 35px;
        background-image: url(../images/list.png);

    }
    .count_ul{
       
        position: absolute;  
        left: -29px;
        
        top: 50%;
        li{
            position: relative;
            height: 35px;
            width: 35px;
            background-color: #7a6e6e;
            border-bottom: 1px solid white;
            p{  
                width:100%;
                height: 100%;
                background-image: url(../images/toolbars.png);
                background-position: -87px -174px;
                transition: .5s;
                position: relative;
            }
            
            &:nth-child(6){
                border: none;
            }
            &:hover{
                background: pink;
            }
            &:hover b{
                left: -60px;
                background-color: pink;
                // color: red; 
                transition: left 0.3s ease-in-out 0.1s;
                // transition:0.5s
            }
        }
         b{ 
            width: 62px;
            height: 35px;
            line-height: 35px;
            text-align: center;
            position: absolute;
            top: 0;
            left: 35px;
            // left: -60px;
            // background-color: pink;
            // color: red;
            // background-color: pink;
            transition: left 0.3s ease-in-out 0.1s;
        }
    }

}
